export const getters = {
    // 获取audio的播放状态
    getState: state => {
        return state.audioState
    },
    // 获取播放模式
    getModel: state => {
        return state.model
    },
    // 获取歌曲名称
    getName: state => {
        return state.song.name
    },
    // 获取歌曲作者
    getAuthor: state => {
        return state.song.author
    },
    // 获取歌曲地址
    getMusicUrl: state => {
        return state.song.src
    },
    // 获取歌曲时长
    getDuration: state => {
        return state.duration
    },
    // 获取歌曲当前时间
    getCurrentTime: state => {
        return state.currentTime
    },
    // 获取歌词
    getLyrics: state => {
        return state.song.lyric
    },
    // 获取歌词的显示状态
    getShowLyrics: state => {
        return state.showLyrics
    },
    // 获取当前歌词的行号
    getLyricsIndex: state => {
        return state.lyricsIndex
    },
    // 获取歌曲图片
    getImgUrl: state => {
        return state.song.picUrl
    },
    // 获取歌曲在列表中的index值
    getIndex: state => state.index,

    // 获取播放列表
    getMusicList: state => state.list,

    // 获取未读评论
    getUnReadCom: state => state.unreadComments,

    // 获取未读评论的数量
    getReadMount: state => state.unreadComments.length,

    // 获取博主信息
    getAdmin: state => state.admin,

    // 获取用户信息
    getUser: state => state.user,

    // 获取登陆状态
    getIsLogin: state => state.isLogin,

    // 获取token
    getToken: state => state.token,

    // 获取文章数据
    getArticle: state => state.articleData,

    // 歌曲是否可以播放
    getCanPlay: state => state.isCanPlay,

    // 获取截取的排行榜
    spliceListOfSinger: state => state.listOfSinger.slice(0, 8),
    getRanklingList: state => state.spliceRanklingList,
    // 获取完整排行榜
    getSoaringList: state => state.soaringList,
    getNewSongList: state => state.newSongList,
    getHotSongList: state => state.hotSongList,
    getTheOriginalList: state => state.theOriginalList,
    getListOfSinger: state => state.listOfSinger,


    // 获取聊天ID
    getChatId: state => state.chatId,
    // 获取群聊聊天记录
    getGroupChat: state => state.groupChat,
    // 获取私聊聊天记录
    getPrivateChat: state => state.privateChat,
    // 获取在线用户
    getOnlineUsers: state => state.onlineUsers,
    // 用户是否被禁言
    getMute: state => state.mute,

    // 获取路由path
    getPath: state => state.path,

    // 获取同分类文章
    getCategoryArticle: state => state.categoryArticle,

    // 获取评论通知
    getNotify: state => state.notify,
    // 获取留言通知
    getInform: state => state.inform,
    // 获取评论提示标识
    getComPrompt: state => state.comPrompt,
    // 获取留言提示标识
    getMessPrompt: state => state.messPrompt
}